#! /usr/bin/env python3

from PySide2.QtWidgets import QTableWidget, QHeaderView
from PySide2.QtCore import QObject


class CViewBaseStyle(QObject):
    def __init__(self, parent=None):
        super(CViewBaseStyle, self).__init__(parent)

    def set_clip_style(self, tb_v: QTableWidget, tb_a: QTableWidget):
        print("CViewBaseStyle Undefined")


class CViewSampleStyle(CViewBaseStyle):
    def __init__(self, parent=None):
        super(CViewSampleStyle, self).__init__(parent)

    def set_clip_style(self, tb_v: QTableWidget, tb_a: QTableWidget):
        tb_v.horizontalHeader().setSectionResizeMode(1, QHeaderView.Stretch)


def factory() -> CViewBaseStyle:
    return CViewSampleStyle()
